package day5;

/**
 * @author oldliu
 * @since 1.0
 */
//古筝
public class Guzhen {
    private String color;//颜色
    private String owner;//主人
    //弦的数目
    public static int lines=5;

    public Guzhen(String color, String owner) {
        this.color = color;
        this.owner = owner;
    }


    public void play(String to){
        System.out.println("这是一把"+color+"的古筝，属于"+owner);
        System.out.println("这是"+lines+"弦琴");
        showLines();
        System.out.println(this.owner+"弹奏给"+to+"听");
    }
    public static void showLines(){
        System.out.println("古筝都是"+lines+"弦的！");

    }
}
